{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('web/index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="{:url('index')}"><strong>消费会员列表</strong></a>
		</li>
	</ol>
</div>
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">	
			<div class="form-group">
				用户名称<input type="text" id="realname" name="realname" value="" placeholder="请输入用户名称" class="bank" />
				手机号<input type="text" id="mobile" name="mobile" value="" placeholder="请输入手机号" class="bank" />
				时间<input id='start_time' name='start_time'  style="width: 200px;" onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />	
				<input id='end_time' name='end_time'  style="width: 200px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />
				<span class="bank"><button type="submit" class="btn btn-sm btn-primary"> <li class="fa fa-search"> 查询</li></button> <a href="{:url('dc')}" class="btn btn-primary btn-outline">导出消费会员表</a></span>
			</div>
		</from>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                          
                                <th>姓名</th>
                                <th>电话</th>
								<th>地址</th>
								<th>积分</th>
								<th>时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.real_name}</td>
                        		<td>{$ad.mobile}</td>
                        		<td>{$ad.city}</td>
                        		<td>{$ad.score}</td>
                        		<td>{$ad.time}</td>
                        		<td>	
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
									<i class="fa fa-trash-o"></i> 删除</a>
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}